#ifndef CONFIRMREPLACEDLG_H
#define CONFIRMREPLACEDLG_H

#include "scrollingdialog.h"
#include <wx/intl.h>

class M_Code_StyledTextCtrl;

enum ConfirmResponse {
  crYes = 0,
  crNo,
  crAllInFile,
  crSkipFile,
  crAll,
  crCancel
};

class ConfirmReplaceDlg : public wxScrollingDialog {
  public:
    ConfirmReplaceDlg( wxWindow* parent, bool replaceInFiles = false, const wxString& label = _T( "替换此事件?" ) );
    ~ConfirmReplaceDlg();
    void OnYes( wxCommandEvent& event );
    void OnNo( wxCommandEvent& event );
    void OnAllInFile( wxCommandEvent& event );
    void OnSkipFile( wxCommandEvent& event );
    void OnAll( wxCommandEvent& event );
    void OnCancel( wxCommandEvent& event );
    void CalcPosition( M_Code_StyledTextCtrl* ed );
  private:
    DECLARE_EVENT_TABLE()
};

#endif
